package org.example;

import java.util.Arrays;
import java.util.Collection;
import java.util.List;

/**
 * @description:
 * @author:Ihope
 * @date: ${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}
 * @version:
 */
public class Main {

    public static <T extends Comparable<? super T>> T max(Collection<T> coll) {
        if (coll == null || coll.isEmpty()) {
            return null;
        }
        return null;
    }

    public static void main(String[] args) {
        List<Student> lisi = Arrays.asList(new Student("lisi", 19, "男"));
        max(lisi);


        List<Person> lisi2 = Arrays.asList(new Person("男"));

        max(lisi2);

    }
}


class Student extends Person<Student> {

    public Student(String name, int age, String gender) {
        super(gender);
        this.name = name;
        this.age = age;
    }

    private String name;
    private int age;


    @Override
    public int compareTo(Student o) {
        return super.compareTo(o);
    }
}

class Person<T extends Person> implements Comparable<T> {
    private String gender;

    public Person(String gender) {
        this.gender = gender;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public int compareTo(Person o) {
        return 0;
    }
}

